package com.example.transaction.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zh
 * @since 2023-06-20
 */
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "announcementID", type = IdType.AUTO)
    private Integer announcementID;
    @TableField(value = "userID")
    private Integer userID;
    @TableField(value = "announcementTitle")
    private String announcementTitle;
    @TableField(value = "announcementContent")
    private String announcementContent;
    @TableField(value = "creationTime")
    private LocalDateTime creationTime;

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    @TableField(value = "deleted")
    private Integer deleted;

    public Integer getAnnouncementID() {
        return announcementID;
    }

    public void setAnnouncementID(Integer announcementID) {
        this.announcementID = announcementID;
    }
    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }
    public String getAnnouncementTitle() {
        return announcementTitle;
    }

    public void setAnnouncementTitle(String announcementTitle) {
        this.announcementTitle = announcementTitle;
    }
    public String getAnnouncementContent() {
        return announcementContent;
    }

    public void setAnnouncementContent(String announcementContent) {
        this.announcementContent = announcementContent;
    }
    public LocalDateTime getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(LocalDateTime creationTime) {
        this.creationTime = creationTime;
    }

    @Override
    public String toString() {
        return "Announcement{" +
            "announcementID=" + announcementID +
            ", userID=" + userID +
            ", announcementTitle=" + announcementTitle +
            ", announcementContent=" + announcementContent +
            ", creationTime=" + creationTime +
        "}";
    }
}
